package my.springboot.prepost;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan
public class PrepostConfig {
	
	@Bean(initMethod="init", destroyMethod="destory")
	BeanWay beanWay(){
		return new BeanWay();
	}
	
	@Bean
	Jsr250Way jsr250Way(){
		return new Jsr250Way();
	}
}
